package com.xzx.service;

import com.xzx.bean.UserAddress;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 *
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/9/1 11:13
 */
@DubboService
@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<UserAddress> getUserAddressList(String userId) {
        UserAddress userAddress1 = new UserAddress();
        userAddress1.setUserAddress("北京");

        UserAddress userAddress2 = new UserAddress();
        userAddress2.setUserAddress("西安");
        return Arrays.asList(userAddress1, userAddress2);
    }
}
